package edu.cque.account.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

import java.math.BigDecimal;

/**
 * @author Hua
 * @create 2022-08-29 12:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@RequiredArgsConstructor   这个注解会根据创建对象使用的参数创建对应的构造方法,前提是字段只能是final类型
public class Account {
    private Long id;
    private Long userId;
    private BigDecimal total;//总金额
    private BigDecimal used;//已使用金额
    private BigDecimal residue;//可用金额
    private BigDecimal frozen;//冻结金额

}
